package com.chuangsi.project.admin.dto.admin.agreement;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * @author wangshengming
 * @date 2023/3/24
 */
@Data
public class ReqAgreementUpdateDto {

    @ApiModelProperty(value = "合同模板id")
    @TableId(value = "agreement_id", type = IdType.ASSIGN_UUID)
    @NotEmpty(message="合同模板id不能为空")
    @Size(max=32,message="合同模板id长度过长")
    private String agreementId;

    @ApiModelProperty(value = "合同模板名称")
    @NotEmpty(message="合同模板名称不能为空")
    @Size(max=50,message="合同模板名称长度过长")
    private String agreementName;

//    @ApiModelProperty(value = "客户名称")
//    private String customName;
//
//    @ApiModelProperty(value = "客户联系方式")
//    private String customPhone;
//
//    @ApiModelProperty(value = "销售金额")
//    private BigDecimal money;
//
//    @ApiModelProperty(value = "产品类型（1.原厂代销，2.其他代销，3.传统）")
//    private String type;
//
//    @ApiModelProperty(value = "支付类型（1.全款，2.分期）")
//    private String payType;

    @ApiModelProperty(value = "合同详情")
    private String agreementDetail;

    @ApiModelProperty(value = "自定义字段（json格式）")
    @NotEmpty(message="自定义字段（json格式）不能为空")
    private String selfField;
}
